package com.tl.khadmin.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.tl.khadmin.bean.ProductBrand;

public interface ProductBrandMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ProductBrand record);

    int insertSelective(ProductBrand record);

    ProductBrand selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ProductBrand record);

    int updateByPrimaryKey(ProductBrand record);

	List<ProductBrand> listProductBrand(Map<String, Object> param);

	List<ProductBrand> showProductBrandByPage(Map<String, Object> params);

	Integer queryIdByBrandName(String brandName);
	
	Integer findIdByBrandName(String brandName); 

	int deleteByIds(@Param("ids") String[] ids);

	Integer queryIdByBrandNameAndId(@Param("id")Integer id, @Param("brandName") String brandName);


}